// 通用接口配置
import { createApi } from '@ajax'
import { baseURL, path } from '@config'

const prefix = 'blog'
const option = { baseURL: baseURL }

export const login = createApi(`${path}/${prefix}/user/login`,option); // 登录
export const logout = createApi(`${path}/${prefix}/user/logout`,option); // 登出
export const imgCode = `${baseURL}/Mcake/getVerifiCode?a=`; // 验证码
export const getUser = createApi(`${path}/${prefix}/user/getUser`, option) // 用户信息
export const listMenu = createApi(`${path}/${prefix}/menu/listMenu`,option); // 左侧菜单
export const changePassword = createApi(`${path}/${prefix}/user/changePassword`,option); // 修改密码
